<?php
session_start();
require_once './core/conn.php';
if (isset($_SESSION['username'])){
    $check_result = mysqli_query($conn, "SELECT id, himg FROM user WHERE username = $_SESSION[username]");
    $array = mysqli_fetch_array($check_result);
    $uid = $array['id'];
    $himg = $array['himg'];
}
